package jTableTest;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

    public class Chapter11 {
        
        public static void main(String[] args) {
          JFrame window;
          Object[] options = {"Point","Circle"};
          
          int n = JOptionPane.showOptionDialog(null,"Please select a demo to run.","Chapter 11",
                  JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE,null,options,options[1]);

          switch(n) {
            case 0: // Point
              window = new PointDemo();
              window.setVisible(true);
              break;
            case 1:
              window = new CircleDemo();
              window.setVisible(true);
              break;
          }
        }
}
